package com.sz.designpattern.create5.builder.classic;

public class GoodABuilder implements IGood{

    GoodBean bean;

    public GoodABuilder() {
        this.bean = new GoodBean();
    }

    @Override
    public void produce() {
        bean.setName("");
    }

    @Override
    public void wrap() {
        bean.setNumber(111);
    }

    @Override
    public void sell() {
        bean.setPrice(1234);
    }

    @Override
    public GoodBean getGood() {
        return bean;
    }


}
